//定义一个简单的计数器状态
import { defineStore } from "pinia";

export const useCounterStore = defineStore('counter',{
  state: () => ({
    count:0
  }),
  actions: {
    numAdd() {
      this.count++
    },
    numDec() {
      this.count--
    }
  }
})